#pragma once

#include <math.h>
#include <string>
#include <vector>
#include "LeafNode.h"
#include "common.h"

using	namespace	std;

typedef	struct tagFeatureModel
{
	double				MaxValue, MinValue;
	int					BinSize;
	vector<double>		BinValue;
	double				Smooth;
} FeatureModelType;

class CLeafNodeModel
{
	public:
		CLeafNodeModel(void);
		~CLeafNodeModel(void);

	public:
		////vector<FeatureModelType>		FeatureModel;
		////vector<double>					Weights;

		double							x, y;
		double							ori; // , _scale;
		int								LeafNodeID;

	public:
		int		SaveLeafNodeModel(FILE *fpFile);
		int		ReadLeafNodeModel(FILE *fpFile);
		////int		ConvertFeature(vector<double> &inFeature, vector<double> &outFeature);
};
